<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";
	require_once "../../_func/__MysqlFunc.php";
	require_once "../../_func/_MngFunc.php";
	require_once "../../_func/_CodeFunc.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: 농협전북지부 ERP시스템 ::</title>
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script src="/js/mng.js"></script>
</head>
<body>
<div id="wrap">
	<!-- header start -->
	<? include("../_layout/head.inc"); ?>
	<!-- header end -->
	
<!-- container start -->
	<div id="container">
	
	<!-- sub menu start -->
	<? include("../_layout/left.inc"); ?>
	<!-- sub menu end -->	
	
        <div class="code_contents">
        	<div class="subtit">
        		<p class="subtt15"><span>코드관리 > 관리자 계정관리</span></p>
			</div>
            <p class="tableTitle"><span class="b"></span>관리자 계정</p>
			<div class="BtnList2">
				<p>
				<input type="button" class="btn_excel" onClick="MNG.fncRtnfunc('excel','member');" title="엑셀로다운받기"/>
                <input type="button" class="btn_print" onClick="MNG.fncRtnfunc('print','member');" title="출력하기"/>
				</p>
			</div>
<form name=frm id=frm method="POST" action="">
            <table cellpadding="0" cellspacing="1" border="0" class="erpTable">
				<colgroup>
					<col width="4%" />
					<col width="19%" />
					<col width="19%" />
					<col width="19%" />
					<col width="19%" />
				</colgroup>
            	<tr>
					<th>
					<input type="checkbox" id="chkAll" name="chkAll" onClick="fnCheckAll();" value="all" />
					</th>
                    <th>ID</th>
                    <th>농협명</th>
                    <th>등급</th>
                    <th>사용유무</th>
				</tr>
<?
	$list = & GetMemberList();

	if ($list->getLength() == 0)
	{
?>
				<tr>
					<td colspan=5>등록된 사용자가  없습니다.</td>
				</tr>
<?
	}
	else
	{
		while ($list->hasNext())
		{
			$row 			= & $list->next();
			$member_seq		= $row->getNumber('member_seq');
			$member_id		= $row->getString('member_id');
			$jbnh_name		= $row->getString('jbnh_name');
			$member_useyn	= ( $row->getString('member_delyn') == "N" )  ?  "Y" : "N";

			//관리자등급 1:전체관리자, 2:지역농협관리자, 3:지역관리자
			$member_grade		= RtnMemberGrade($row->getNumber('member_grade'));
?>
                <tr>
					<td><input type="checkbox" id="chkbxNo" name="chkbxNo" value="<?echo $member_seq?>" /></td>
                	<td><?= $member_id?></td>
                    <td><?= $jbnh_name?></td>
                    <td><?= $member_grade?></td>
                    <td><?= $member_useyn?></td>
                </tr>
<?
			}
		}
?>
            </table>
            <div class="BtnList">
            	<ul>
                	<li><input type="button" class="btn_submit" title="등록" OnClick="MNG.fncRtnfunc('reg','member');"/></li> 
					<li><input type="button" class="btn_modify" title="수정" OnClick="MNG.fncRtnfunc('mod','member');"/></li> 
					<li><input type="button" class="btn_del" title="삭제" OnClick="MNG.fncRtnfunc('del','member');" />
                </ul>
            </div>
        </div>
    </div>   
</form>

	<!-- footer start -->
	<? include("../_layout/footer.inc"); ?>
	<!-- footer end -->

</body>
</html>